﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/masAdmin.master" AutoEventWireup="true" CodeFile="AreaCategoryList.aspx.cs" Inherits="admin_AreaCategoryList" %>

<asp:Content ID="Content3" ContentPlaceHolderID="pagename" runat="Server">
    Video Category List
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">
    
    <div   class="box"> 
     <div>
            
            <asp:Button ID="btnAddNew" Text="Add New" runat="server" CssClass="button" 
                onclick="btnAddNew_Click"  />
        </div>
        <br />
        <br />
         <%=html %>
    </div>
    
     <asp:Button ID="btnSubmit" runat="server" onclick="btnSubmit_Click" CssClass="hiddenButton" />
     <input type="hidden" id="hidAction" runat="server" value="" />
      <input type="hidden" id="hidCategoryId" runat="server" value="" />
    <script language="JavaScript" type="text/javascript">

        var ns6 = document.getElementById && !document.all ? 1 : 0

        var head = "display:''"
        var department = ''

        function expandit(objid) {
            department = document.getElementById('SPAN' + objid).style;
            img = document.getElementById('IMG' + objid);
            fld = document.getElementById('FLD' + objid);

            if (department.display == "none") {
                department.display = "block"
                img.src = img.src.replace(/plus/i, "minus");
                fld.src = fld.src.replace(/plus/i, "minus");
            } else {
                department.display = "none"
                img.src = img.src.replace(/minus/i, "plus");
                fld.src = fld.src.replace(/minus/i, "plus");
            }
        }
        function DeleteCategory(cateId) {
            var button = document.getElementById('<%=btnSubmit.ClientID %>');
            document.getElementById('<%=hidAction.ClientID %>').value = '1';
            document.getElementById('<%=hidCategoryId.ClientID %>').value = cateId;
            if (button) {
                button.click();
            }
        }
        function OrderDown(cateId) {

            var button = document.getElementById('<%=btnSubmit.ClientID %>');
            document.getElementById('<%=hidAction.ClientID %>').value = '2';
            document.getElementById('<%=hidCategoryId.ClientID %>').value = cateId;
            if (button) {
                button.click();
            }
        }
        function OrderUp(cateId) {

            var button = document.getElementById('<%=btnSubmit.ClientID %>');
            document.getElementById('<%=hidAction.ClientID %>').value = '3';
            document.getElementById('<%=hidCategoryId.ClientID %>').value = cateId;
            if (button) {
                button.click();
            }
        }
        function Active(cateId) {

            var button = document.getElementById('<%=btnSubmit.ClientID %>');
            document.getElementById('<%=hidAction.ClientID %>').value = '4';
            document.getElementById('<%=hidCategoryId.ClientID %>').value = cateId;
            if (button) {
                button.click();
            }
        }
        function DeActive(cateId) {

            var button = document.getElementById('<%=btnSubmit.ClientID %>');
            document.getElementById('<%=hidAction.ClientID %>').value = '5';
            document.getElementById('<%=hidCategoryId.ClientID %>').value = cateId;
            if (button) {
                button.click();
            }
        }
    </script>
</asp:Content>